<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<html>
	<head>
		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
		<title>发票申请-金融风险管理系统</title>
		<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/common.js" type="text/javascript"></script>
		<link href="${contextPath}/styles/default.css" rel="stylesheet" type="text/css" />
		<script language='javascript'>
		function display(id){
			window.open("<s:property value='contextPath'/>/mf/apply/billDisplay.do?id="+id, "newwindow", "height=800, width=800, toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no");
		}
		</script>
	</head>
	<body  leftmargin='8' topmargin='8'>
	<div class="navigation">
	    <span><a href="javascript:window.history.back();"><img src="${contextPath}/images/back_nav_btn.png" /></a>
	    <a href="javascript:window.history.back();">返回</a>
	    <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
	     <a href="javascript:window.history.forward();">前进</a>
	    <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
	     <a href="javascript:window.location.reload();">刷新</a>
 	    </span>管理费&gt;&gt;发票申请
    
  	</div>
		<div class="xt_main_right_center">
		<form id="form1" name="form1" action="billUpdate.do" method="post"  onSubmit="return Validator.Validate(this,3)">
			<table width="100%" border="0" cellpadding="1" cellspacing="1">
			<tr>
				<td class="left-td-width-bg">
					店名：
				</td>
				<td width="30%" class="bline" align="left">
					<s:property value="bill.shop.shopName"/>
				</td>
				<td class="left-td-width-bg">
					驻店顾问：
				</td>
				<td width="25%" class="bline" align="left">
					<s:property value="findUserShopByShopId(bill.shop.id)"/>
				</td>
				<td width="20%" class="bline" align="left"></td>
			</tr>
		</table>
	
		<!-- 列表开始 -->	
			<br/>
			<table id="tab" width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
			  <tr> 
			    <td width="4%" class="top-td-width-bg">序号</td>
			    <td width="15%" class="top-td-width-bg">银行</td>
			    <td width="15%" class="top-td-width-bg">应收金额</td>
			    <td width="20%" class="top-td-width-bg">收取月份</td>
			    <td width="15%" class="top-td-width-bg">状态</td>
			    <td width="20%" class="top-td-width-bg">备注</td>
			  </tr>
			  
			 <s:iterator value="bill.options" status="stx" >
				<tr class="data_tr"  height="26" align="center" bgcolor="#FFFFFF" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#FFFFFF';">
					<td  class="down-center-td-width-bg">
						<s:property value="#stx.index+1"/>
					</td> 
					<td  class="down-center-td-width-bg">
						<s:property value="financial.name"/>
					</td> 
					<td  class="down-center-td-width-bg">
						<s:property value="formatAmount(amount)"/>
					</td> 
					<td  class="down-left-td-width-bg">
						<s:if test="operate==2">
							<a href="javascript:display(<s:property value="id"/>)" ><font color="red"><s:property value="month"/>(预收)</font></a>
						</s:if>
						<s:else><s:property value="month"/></s:else>
					</td> 
					<td  class="down-center-td-width-bg">
						<s:property value="status.name"/>
					</td> 
					<td  class="down-center-td-width-bg">
						<s:property value="remark"/>
					</td> 
				 	<td style="display: none"><s:property value="id"/></td> 
				</tr>
			</s:iterator>
			</table>
			<table width="100%" border="0" cellpadding="1" cellspacing="1">
			<tr style="padding-top: 20px">
				<td class="bline" colspan="4" align="center">
					&nbsp;<input type="button" onclick="javascript:window.history.back();" value="返回"/>
				</td>
			</tr>
			</table>
		
			<br/>
		<input type="hidden" name="bill.id" value="<s:property value='bill.id'/>"/>
		<input type="hidden" id="shopId" value="<s:property value='bill.shop.id'/>"/>
		</form>
		</div>
	</body>
</html>